<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>龙达飞生活馆2016年广告语有奖征集赢取iPhone6s大奖</title>
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta charset="utf-8" />
<link href="<%=basePath%>/css/sweetalert.css" rel="stylesheet" />
<link href="<%=basePath%>/css/idangerous.swiper.css" rel="stylesheet" />
<script type="text/javascript" src="<%=basePath%>/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/idangerous.swiper-2.1.min.js"></script>
<style>
* {
	margin: 0;
	padding: 0;
	font-family: "微软雅黑";
}

li {
	list-style: none;
}

body {
	background: #e7faab;
}

a {
	text-decoration: none;
}

.baiyi-vote-warp {
	max-width: 640px;
	margin: 0 auto;
}

.baiyi-vote-searhbox {
	padding: 10px;
	overflow: hidden;
}

.search-input {
	width: 80%;
	float: left;
	padding-right: 10px;
}

.search-input input {
	width: 100%;
	height: 35px;
	line-height: 35px;
	border: 2px solid #ff2946;
	background-color: #fff;
	border-radius: 5px;
	padding: 5px 10px;
	box-sizing: border-box;
	outline: none;
}

.search-btn {
	overflow: hidden;
}

.search-btn button {
	width: 100%;
	height: 35px;
	border: 1px solid #ccc;
	background-color: #ff2946;
	border-radius: 5px;
	box-sizing: border-box;
	font-size: 16px;
	text-align: center;
	color: #fff;
}

.baiyi-vote-content {
	margin: 0 auto;
	overflow: hidden;
	padding-left: 10px;
	box-sizing: border-box;
}

.baiyi-vote-content .item {
	width: 50%;
	margin-top: 10px;
	float: left;
}

.baiyi-vote-content .item .item-content {
	padding-right: 10px;
}

.baiyi-vote-content .item .item-content .box {
	border: 1px solid #CCC;
	background: #fff;
}

.baiyi-vote-content .item .item-content .box .pic {
	overflow: hidden;
	height: 143px;
	text-align: center;
}

.baiyi-vote-content .item .item-content .box .pic img {
	height: 100%;
}

.baiyi-vote-content .item .item-content .box .btnwarp {
	text-align: center;
	margin: 15px auto;
}

.baiyi-vote-content .item .item-content .box .info {
	display: -webkit-box;
}

.baiyi-vote-content .item .item-content .box .info span {
	-webkit-box-flex: 1;
	text-align: center;
	font-size: 12px;
	display: block;
	line-height: 20px;
	color: #333;
}

.baiyi-vote-content .item .item-content .box .info span.g {
	color: green;
}

.baiyi-vote-content .item .item-content .box .info span.r {
	color: red;
}

.baiyi-vote-property .btnvote {
	padding: 10px 20px;
	font-size: 12px;
	color: #fff;
	border-radius: 6px;
	display: block;
	cursor: pointer;
	margin: 5px 10px;
	text-align: center;
}

.baiyi-vote-property .btnvoted {
	padding: 10px 20px;
	font-size: 12px;
	color: #fff;
	border-radius: 6px;
	display: block;
	cursor: pointer;
	background-color: #ccc !important;
	margin: 5px 10px;
	text-align: center;
}

.baiyi-vote-property .btnvote:first-child {
	background-color: #ff3963;
}

.baiyi-vote-property .btnvote:nth-child(2) {
	background-color: #F50;
}

.baiyi-vote-property .btnvote:last-child {
	background-color: #44b549;
}

.baiyi-vote-rule {
	width: 100%;
	bottom: 0;
	left: 0;
	z-index: 10;
	margin-bottom: 10px;
	margin-top: 10px;
	overflow: hidden;
}

.baiyi-vote-rule ul {
	padding: 0px 4px;
	display: -webkit-box;
}

.baiyi-vote-rule ul li {
	-webkit-box-flex: 1;
	height: 40px;
	padding: 0px 2px;
	box-sizing: border-box;
	line-height: 40px;
	font-size: 16px;
}

.baiyi-vote-rule ul li a {
	color: #FFF;
	background: #ff3963;
	width: 100%;
	height: 40px;
	display: block;
	border-radius: 5px;
	text-align: center;
	font-size: 14px;
}

.baiyi-copyright {
	text-align: center;
	font-size: 12px;
	color: #fff;
	padding: 5px 0;
	color: #000;
}

.baiyi-vote-info {
	padding: 10px;
}

.ui-dialog {
	width: 240px;
	height: 240px;
	box-shadow: 0 1px 1px 1px rgba(0, 0, 0, .5);
	background: #fff;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-left: -120px;
	margin-top: -120px;
	display: none;
}

.ui-dialog .know {
	width: 100%;
	height: 30px;
	background: #ff3963;
	position: absolute;
	bottom: 0;
	text-align: center;
	line-height: 30px;
	color: #fff;
}

.ui-dialog .content {
	padding: 5px;
	height: 200px;
	overflow-x: hidden;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	-webkit-text-size-adjust: none;
}
/**loading*/
#loading {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 99;
	margin-left: -73px;
	margin-top: -73px;
}

#loading, #loading .lbk, #loading .lcont {
	width: 146px;
	height: 146px;
}

#loading .lbk, #loading .lcont {
	position: absolute;
}

#loading .lbk {
	background-color: #000;
	opacity: 0.5;
	border-radius: 10px;
	z-index: 0;
	top: 0;
	left: 0;
}

#loading .lcont {
	text-align: center;
	color: #f5f5f5;
	font-size: 14px;
	line-height: 35px;
	z-index: 1;
	top: 0;
	left: 0;
}

#loading img {
	width: 35px;
	height: 35px;
	margin: 30px auto;
	display: block;
}

.bellows__content {
	font-size: 12px;
	line-height: 20px;
	margin: 0 10px;
}

.bellows__content .bellows {
	margin-top: 20px;
}

* {
	box-sizing: border-box;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
	color: #fff;
}

.tpjl table tr th {
	line-height: 30px;
	background-color: #feb435;
}

.tpjl table tr td {
	line-height: 30px;
	text-align: center;
	background-color: #213374;
	border-bottom: 2px #16275f solid;
}

.tpjl table tr td a {
	display: block;
	width: 100%;
	color: #fff;
}

.pxxxk {
	margin: 10px 10px 0 10px;
	background-color: #08174A;
	font-size: 14px;
	height: 30px;
	line-height: 30px;
	display: -webkit-box
}

.pxxxk li {
	width: 50%;
	list-style: none;
	text-align: center;
	height: 30px;
	cursor: pointer;
	-webkit-box-flex: 1;
}

.pxxxk li.plist {
	color: #ffffff;
	display: block;
}

.pxxxk li.xz {
	background-color: #274e9c;
}

.pxxxk li.plist a {
	color: #000;
}

.pxxxk li.xz a {
	color: #fff !important;
}

.rank {
	display: none;
}

.rank.show {
	display: block;
}
</style>
</head>
<body>
	<div class="baiyi-vote-warp">
		<div class="head">
			<div class="swiper-container">
					<ul class="swiper-wrapper">
						<li class="swiper-slide"><a href="javascript:void(0)"><img
								src="<%=basePath%>/images/1.jpg"
								alt="" width="100%" /></a></li>
						<li class="swiper-slide"><a href="javascript:void(0)"><img
								src="<%=basePath%>/images/2.jpg"
								alt="" width="100%" /></a></li>
						<li class="swiper-slide"><a href="javascript:void(0)"><img
								src="<%=basePath%>/images/3.jpg"
								alt="" width="100%" /></a></li>
					</ul>
			</div>
		</div>
		<div class="baiyi-vote-rule">
				<ul class="clearfix">
					<li><a
						href="<%=basePath%>/vote.htm?openId=${openid}">活动首页</a></li>
					<li><a
						href="<%=basePath%>/voteNote.htm?openId=${openid}">活动须知</a></li>
					<li><a
						href="<%=basePath%>/votePrice.htm?openId=${openid}">奖项设置</a></li>
					<li><a
						href="<%=basePath%>/voteRank.htm?openId=${openid}">活动排行</a></li>
					<li><a
						href="<%=basePath%>/voteUpload.htm?openId=${openid}">我要报名</a></li>
				</ul>
		</div>
		<div class="pxxxk">
			<li class="plist xz"><a>全部</a></li>
		</div>
		<div class="bellows__content tpjl rank show">
			<table border="0" width="100%">
				<tbody>
					<tr>
						<th width="10%">排名</th>
						<th>选项名称</th>
						<th>总票数</th>
					</tr>
					<c:forEach items="${list }" varStatus="status" var="player">
					<tr>
						<td>${status.count }</td>
						<td><a
							href="<%=basePath%>/voteinfo.htm?id=${player.id }">${player.name }</a></td>
						<td>${player.votedNum }</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<div class="baiyi-copyright">&copy;点讯科技</div>
	</div>
<script type="text/javascript">
	$(function() {

		var mySwiper = new Swiper('.swiper-container', {
			calculateHeight : true,
			roundLengths : true,
			loop : true
		})

		$(".pxxxk .plist").each(function(i) {
			$(this).click(function() {
				$(".pxxxk .plist").removeClass("xz");
				$(this).addClass("xz");
				$(".rank").hide().eq(i).show();
			})
		})
	})
</script>
</html>